@import '../../assets/css/_variable.less';

.i-txt-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  // width: 200px;
  height: 40px;
  font-size: 14px;
  background: var(--aibox-bg10);
  border: 1px solid var(--aibox-color2);
  border-radius: 2px;

  // box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  &.disabled {
    border: 1px solid var(--aibox-color3);
    cursor: not-allowed;

    .i-txt {
      color: var(--aibox-color1);
    }
  }

  .i-txt {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 15px;
    color: var(--aibox-color);
    font-size: 14px;
    letter-spacing: 1px;
    cursor: inherit;

    &.i-txt-abs {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }

    &.i-txt-place {
      color: rgba(255, 255, 255, 0);
      white-space: pre;
      opacity: 0;
      pointer-events: none;
    }
  }

  .i-del {
    margin-right: 10px;
    color: var(--aibox-color);
    font-size: 24px;
    cursor: pointer;
  }
}
